﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DCB RID: 3531
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RankUpAvatarCsReq : IMessage<RankUpAvatarCsReq>, IMessage, IEquatable<RankUpAvatarCsReq>, IDeepCloneable<RankUpAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17002CD6 RID: 11478
		// (get) Token: 0x06009E78 RID: 40568 RVA: 0x001A7E45 File Offset: 0x001A6045
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RankUpAvatarCsReq> Parser
		{
			get
			{
				return RankUpAvatarCsReq._parser;
			}
		}

		// Token: 0x17002CD7 RID: 11479
		// (get) Token: 0x06009E79 RID: 40569 RVA: 0x001A7E4C File Offset: 0x001A604C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RankUpAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CD8 RID: 11480
		// (get) Token: 0x06009E7A RID: 40570 RVA: 0x001A7E5E File Offset: 0x001A605E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RankUpAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06009E7B RID: 40571 RVA: 0x001A7E65 File Offset: 0x001A6065
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarCsReq()
		{
		}

		// Token: 0x06009E7C RID: 40572 RVA: 0x001A7E70 File Offset: 0x001A6070
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarCsReq(RankUpAvatarCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.rank_ = other.rank_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009E7D RID: 40573 RVA: 0x001A7EC8 File Offset: 0x001A60C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RankUpAvatarCsReq Clone()
		{
			return new RankUpAvatarCsReq(this);
		}

		// Token: 0x17002CD9 RID: 11481
		// (get) Token: 0x06009E7E RID: 40574 RVA: 0x001A7ED0 File Offset: 0x001A60D0
		// (set) Token: 0x06009E7F RID: 40575 RVA: 0x001A7ED8 File Offset: 0x001A60D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17002CDA RID: 11482
		// (get) Token: 0x06009E80 RID: 40576 RVA: 0x001A7EE1 File Offset: 0x001A60E1
		// (set) Token: 0x06009E81 RID: 40577 RVA: 0x001A7EE9 File Offset: 0x001A60E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Rank
		{
			get
			{
				return this.rank_;
			}
			set
			{
				this.rank_ = value;
			}
		}

		// Token: 0x17002CDB RID: 11483
		// (get) Token: 0x06009E82 RID: 40578 RVA: 0x001A7EF2 File Offset: 0x001A60F2
		// (set) Token: 0x06009E83 RID: 40579 RVA: 0x001A7EFA File Offset: 0x001A60FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x06009E84 RID: 40580 RVA: 0x001A7F03 File Offset: 0x001A6103
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RankUpAvatarCsReq);
		}

		// Token: 0x06009E85 RID: 40581 RVA: 0x001A7F14 File Offset: 0x001A6114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RankUpAvatarCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.Rank == other.Rank && object.Equals(this.CostData, other.CostData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009E86 RID: 40582 RVA: 0x001A7F74 File Offset: 0x001A6174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.Rank != 0U)
			{
				num ^= this.Rank.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009E87 RID: 40583 RVA: 0x001A7FE2 File Offset: 0x001A61E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009E88 RID: 40584 RVA: 0x001A7FEA File Offset: 0x001A61EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009E89 RID: 40585 RVA: 0x001A7FF4 File Offset: 0x001A61F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.CostData);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Rank != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Rank);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009E8A RID: 40586 RVA: 0x001A806C File Offset: 0x001A626C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.Rank != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Rank);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009E8B RID: 40587 RVA: 0x001A80DC File Offset: 0x001A62DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RankUpAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.Rank != 0U)
			{
				this.Rank = other.Rank;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009E8C RID: 40588 RVA: 0x001A8158 File Offset: 0x001A6358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009E8D RID: 40589 RVA: 0x001A8164 File Offset: 0x001A6364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 88U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Rank = input.ReadUInt32();
						}
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x04003D27 RID: 15655
		private static readonly MessageParser<RankUpAvatarCsReq> _parser = new MessageParser<RankUpAvatarCsReq>(() => new RankUpAvatarCsReq());

		// Token: 0x04003D28 RID: 15656
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003D29 RID: 15657
		public const int AvatarIdFieldNumber = 11;

		// Token: 0x04003D2A RID: 15658
		private uint avatarId_;

		// Token: 0x04003D2B RID: 15659
		public const int RankFieldNumber = 15;

		// Token: 0x04003D2C RID: 15660
		private uint rank_;

		// Token: 0x04003D2D RID: 15661
		public const int CostDataFieldNumber = 7;

		// Token: 0x04003D2E RID: 15662
		private ItemCostData costData_;
	}
}
